package com.hhit.zhgd.domain.entity

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import javax.validation.constraints.NotBlank

@TableName("zhgd_dictionary")
data class ZhgdDictionary(
    @TableId(type = IdType.AUTO)
    val id: Int? = null,
    /**
     * 代码值
     */
    val code: @NotBlank(message = "code不能为空!") String? = null,
    /**
     * 父节点代码值
     */
    val parentCode: String? = null,
    /**
     * code对应的枚举值
     */
    val value: @NotBlank(message = "value不能为空!") String? = null,
    /**
     * 排序
     */
    val sort: Int? = null,
    /**
     * 备注
     */
    val remark: String? = null
):java.io.Serializable{
    companion object{
        private const val serialVersionUID: Long = 1L
    }
}
